import request from '@/utils/request'
// 获取企业列表
export function getEnterpriseListAPI(params) {
  return request({
    url: '/park/enterprise',
    method: 'get',
    params
  })
}

// 获取行业列表
export function getIndustryListAPI() {
  return request({
    url: '/park/industry',
    method: 'get'

  })
}

// 添加企业接口
export function addEnterpriseAPI(data) {
  return request({
    url: '/park/enterprise',
    method: 'post',
    data

  })
}

// 删除接口
export function deleteEnterpriseAPI(id) {
  return request({
    url: `/park/enterprise/${id}`,
    method: 'delete'
  })
}

// 数据回显
export function getEnterpriseDetailAPI(id) {
  return request({
    url: `/park/enterprise/${id}`,
    method: 'get'
  })
}

// 编辑接口

export function editEnterpriseAPI(data) {
  return request({
    url: 'park/enterprise',
    method: 'put',
    data
  })
}
